package cn.edu.scau.liangshanhero.util;

import java.io.File;
import java.util.HashSet;
import java.util.Set;

import cn.edu.scau.liangshanhero.localization.ChinezationUtil;

public class FileUtilTestMain {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// File file=new File("E:\\test");
		// 测试获取所有的文件
		// System.out.println(ChinezationUtil.getAllJspFile(file).toString());
		File file1 = new File("e:\\test\\test.jsp");
		File directory = new File("e:\\test");
		Set<String> suffixs=new HashSet();
		suffixs.add("jsp");
		// file1.deleteOnExit();
//		System.out.println(ChinezationUtil.getAllFilesWithExtends(directory, suffixs));

		// 测试将jsp文件的字符集改为UTF-8
//		ChinezationUtil.replaceStringsInFile(new File("E:\\test\\test.jsp"),"ISO-8859-1", "UTF-8");

	}

}
